<?php

namespace App\Http\Requests\Admin\Assistant\Article;

use App\Http\Requests\Admin\Request;

class UpdateRequest extends Request
{

    public function rules()
    {
         
        return [
             'title' => 'required',
            //'url'=>array('regex:/(http?|ftp?):\/\/(www)\.([^\.\/]+)\.(com|cn)(\/[\w-\.\/\?\%\&\=]*)?/i')
            'content'=> 'required'
        ];
    }

    public function messages()
    {
        return [
            'title.required' => '标题必须填写',
            'content.required'=>"内容必须填写"
        ];
    }
}
